import axios from '@/util/request'

export function getAllMessages() {
    return axios({
        url: 'message/messages',
        method: 'GET'
    })
}

export function deleteMessage(id) {
    return axios({
        url: 'message/delete',
        method: 'DELETE',
        params: {
            id
        }
    })
}

export function showMessage(id, status) {
    return axios({
        url: 'message/update',
        method: 'PUT',
        params: {
            id,
            status
        }
    })
}